<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Awesome Acoustic Projects</title>
  <!-- SEO Meta Tags -->
  <meta name="description" content="A list of awesome open-source acoustic projects, tools, and resources.">
  <meta name="keywords" content="acoustics, open-source, sound, audio, projects, research, tools, awesome list">
  <meta name="author" content="Awesome Acoustic Contributors">
  <meta property="og:title" content="Awesome Acoustic">
  <meta property="og:description" content="A list of awesome open-source acoustic projects, tools, and resources.">
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://nitnelav.github.io/awesome-acoustic/">
  <meta property="og:image" content="https://nitnelav.github.io/awesome-acoustic/images/logo_1280x640.png">
  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
  <link rel="stylesheet" type='text/css' href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css" />
  <link href="style.css" rel="stylesheet">
  <!-- Favicon -->
  <link rel="icon" type="image/png" href="images/logo_480x480.png">
</head>
<body>
  <nav class="navbar navbar-dark bg-dark mb-4">
    <div class="container-fluid d-flex align-items-center justify-content-between">
      <a href="#" class="navbar-brand brand-logo d-flex align-items-center mb-0">
        <img src="images/logo_1280x640.svg" alt="Logo" style="filter: invert(1) brightness(2);">
      </a>
      <form class="d-flex ms-3 flex-grow-1" role="search" style="max-width: 500px;">
        <input id="search" class="form-control form-control-sm" style="line-height: 2.5; font-size: 1rem;" type="search" placeholder="Filter by name or description" aria-label="Filter">
      </form>
      <button class="btn btn-outline-light ms-3" type="button" data-bs-toggle="modal" data-bs-target="#aboutModal">
        <i class="fa-solid fa-circle-info"></i>
      </button>
    </div>
  </nav>
  <div class="container">
    <div class="row">
      <div class="col-lg-2">
        <nav id="category-menu" class="sticky-top navbar-light">
          <h5 class="d-flex justify-content-between align-items-center">
            Categories
            <button class="btn btn-sm btn-outline-secondary d-lg-none" type="button" data-bs-toggle="collapse" data-bs-target="#category-list" aria-expanded="false" aria-controls="category-list">
              <i class="fa-solid fa-bars"></i>
            </button>
          </h5>
          <div class="collapse d-lg-block" id="category-list">
            <ul class="nav nav-pills flex-column">
              <!-- categories here -->
            </ul>
          </div>
        </nav>
      </div>
      <div class="col-lg-10">
        <div class="row" id="projects-list">
          <!-- Project cards will be injected here -->
        </div>
      </div>
    </div>
  </div>
  <!-- About Modal -->
  <div class="modal fade" id="aboutModal" tabindex="-1" aria-labelledby="aboutModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="aboutModalLabel">About</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body" id="aboutModalBody">
          <!-- about.html content will be loaded here -->
          <div class="text-center text-muted">Loading...</div>
        </div>
      </div>
    </div>
  </div>
  <footer class="footer bg-dark text-white mt-4 py-3">
    <div class="container text-center">
      <span>&copy; 2025 Awesome Acoustic</span>
    </div>
  </footer>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js"></script>
  <script src="main.js"></script>
  <script>
    // Load about.html into modal when opened
    const aboutModal = document.getElementById('aboutModal');
    if (aboutModal) {
      aboutModal.addEventListener('show.bs.modal', function () {
        fetch('about.html')
          .then(response => response.text())
          .then(html => {
            document.getElementById('aboutModalBody').innerHTML = html;
          })
          .catch(() => {
            document.getElementById('aboutModalBody').innerHTML = '<div class="text-danger">Failed to load about.html</div>';
          });
      });
    }
  </script>
</body>
</html>
